[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
CGETC
. Summary
cgetc();
. Description
The cgetc function returns the first character waiting in the re-
ceived data communications buffer. If there are no characters in the
buffer, a value of -1 is returned. The cinp_cnt function may be used
to see if there are any chars waiting in the buffer.
The cgetct functions returns a character from the communications
port, waiting up to <timeout> tenths of a second for it to arrive.
If a character is already waiting in the communications buffer, it
is immediately returned. If no character is received within the
timeout period, a value of -1 is returned.
. Return Value
An integer value as described above.
. Example
if (cinp_cnt())
chr = cgetc();
if ((chr = cgetct(100)) == -1)
prints("Timeout!");
See Also:
cinp_cnt
cgetct
ASCII table
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson